package utils;

import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.SQLException;

import Dao.BaseDao;

public class DBUtils {
	public static void main(String[] args) {
		BaseDao baseDao = new BaseDao();
		Connection connection = baseDao.getConnection();
		try {
			DatabaseMetaData metaData = connection.getMetaData();
			System.out.println(metaData.getDatabaseProductVersion()+":::::"+metaData.getDriverName());
			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally {
			baseDao.clossAll(connection, null);
		}
	}
}
